﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Albuns.aspx.cs" Inherits="SindSaudeAdminUI.Albuns" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<%--  <script src="multUp/jquery-1.3.2.js" type="text/javascript"></script>
    <script src="multUp/jquery.MultiFile.js" type="text/javascript"></script>   --%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="gridAlbuns" runat="server" AutoGenerateColumns="False" onrowcommand="gridAlbuns_RowCommand" Width="900px" >
        <Columns>
            <asp:BoundField HeaderText="Numero" DataField="id"/>
            <asp:BoundField HeaderText="Nome" DataField="strNome"/>
            <asp:BoundField HeaderText="Data" DataField="strData" />
            <asp:ImageField DataImageUrlField="strCaminhoImagem" ControlStyle-Width="80" ControlStyle-Height = "80" />
           <asp:TemplateField>
              <ItemTemplate>
                <asp:Button runat="server" ID="AddButton" Text="Adicionar" CommandName="Adicionar"/>
              </ItemTemplate>
           </asp:TemplateField>
           <asp:TemplateField>
              <ItemTemplate>
                <asp:Button runat="server" ID="AltButton" Text="Adicionar fotos" CommandName="addFoto"  CommandArgument="<%# ((GridViewRow) Container).RowIndex %>"/>
              </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
              <ItemTemplate>
                <asp:Button runat="server" ID="DelButton" Text="Remover" CommandName="Remover" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>"/>
              </ItemTemplate>
           </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <br />
    <br />
<asp:Panel runat="server" ID="pnlAlbuns" Visible="false">      
        Nome do Album :
        <br />
        <br /> 
        <asp:TextBox ID="txtNome" runat="server" Width="211px" Height="26px" />       
        <br />
        Mes e ano :
        <br />
        <br />        
        <asp:TextBox ID="txtData" runat="server" Width="211px" Height="26px" />
        <br />     
        <br />
        Imagem capa :
        <br />
        <br />
        <asp:FileUpload ID="FUarquivo" runat="server" Width="481px" />
        <br />
        <br />
        <asp:Button ID="btnGravar" runat="server" Text="Incluir" onclick="btnGravar_Click" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="btnVoltar" runat="server" onclick="btnVoltar_Click" 
            Text="Voltar" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label>
    </asp:Panel>
    <asp:Panel runat="server" ID="pnlFoto" Visible="false">      
        <br />     
        <br />
        Foto  :
        <br />
        <br />
        <iframe id="like" src="multUpload.aspx" scrolling="no" frameborder="0" height="800px" width="400px" ></iframe>
        <br />
        <br />
<%--        <asp:Button ID="btnIncluiFoto" runat="server" Text="Incluir" 
            onclick="btnIncluiFoto_Click" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="Button2" runat="server"  
            Text="Voltar" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label>--%>
        <br />
        <br />
    </asp:Panel>
</asp:Content>
